package com.orphan.util.mqConfig;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UsersFreezeMq {

    @Bean
    public Queue queueUsersFreeze(){
        return new Queue("usersFreeze");
    }

    @Bean
    public Binding queueUsersFreezeToDirectExchange(Queue queueUsersFreeze, DirectExchange directExchange){
        return BindingBuilder.bind(queueUsersFreeze).to(directExchange).with("UsersFreezeReturn");
    }

}
